package club.xinghe.entity;

/**
 * 试卷实体类
 */
public class Exam {
    private int eId;//试卷的id，试卷的唯一标识
    private String eName;//试卷名，如："北京大学 2019-2020年 第一学期 JAVA考试 "
    private Teacher teacher;//该试卷的出题老师
    private Yx yx;//该试卷所属院系
    private Grade grade;//该试卷所属年级
    private Zy zy;//该试卷所属专业
    private String eString;//该试卷对应的所有试题的id组合成的字符串，以','分割且末尾不带','
    private String eStart;//允许学生登录系统进行考试的开始日期
    private String eEnd;//允许学生登录系统进行考试的截止日期
    private int eTime;//考试限定时长（分钟数）
    //构造器

    public Exam() {
    }

    public Exam(String eName, Teacher teacher, Yx yx, Grade grade, Zy zy, String eString, String eStart, String eEnd, int eTime) {
        this.eName = eName;
        this.teacher = teacher;
        this.yx = yx;
        this.grade = grade;
        this.zy = zy;
        this.eString = eString;
        this.eStart = eStart;
        this.eEnd = eEnd;
        this.eTime = eTime;
    }

    public Exam(int eId, String eName, Teacher teacher, Yx yx, Grade grade, Zy zy, String eString, String eStart, String eEnd, int eTime) {
        this.eId = eId;
        this.eName = eName;
        this.teacher = teacher;
        this.yx = yx;
        this.grade = grade;
        this.zy = zy;
        this.eString = eString;
        this.eStart = eStart;
        this.eEnd = eEnd;
        this.eTime = eTime;
    }

    public int geteId() {
        return eId;
    }

    public void seteId(int eId) {
        this.eId = eId;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Yx getYx() {
        return yx;
    }

    public void setYx(Yx yx) {
        this.yx = yx;
    }

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public Zy getZy() {
        return zy;
    }

    public void setZy(Zy zy) {
        this.zy = zy;
    }

    public String geteString() {
        return eString;
    }

    public void seteString(String eString) {
        this.eString = eString;
    }

    public String geteStart() {
        return eStart;
    }

    public void seteStart(String eStart) {
        this.eStart = eStart;
    }

    public String geteEnd() {
        return eEnd;
    }

    public void seteEnd(String eEnd) {
        this.eEnd = eEnd;
    }

    public int geteTime() {
        return eTime;
    }

    public void seteTime(int eTime) {
        this.eTime = eTime;
    }
}
